Skip to content

Conversation

@marschall
Copy link
Contributor

Use convenience factory methods for collections instead of double brace initialization.

Use convenience factory methods for collections instead of double brace initialization.
@marschall
Copy link
Contributor Author

Convenience factory methods were added with JEP-269 in Java 9. Since our tests are Java 9 and the only users are Java 9 this should not be an issue.

Double brace initialization is generally frowned upon

Copy link
Member

@jbescos jbescos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants